package com.bw.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.domain.Comment;
import com.bw.service.CommentService;
import com.bw.mapper.CommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author THINKAPD
* @description 针对表【t_comment】的数据库操作Service实现
* @createDate 2024-07-09 16:19:53
*/
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment>
    implements CommentService{
    @Autowired
    CommentMapper commentMapper;

    @Override
    public List<Comment> getCommentsByChannelId(Integer id) {
        return commentMapper.getCommentsByChannelId(id);
    }
}




